package com.myslef.teaching_platfrom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.myslef.teaching_platfrom.domain.talk.Talk;
import com.myslef.teaching_platfrom.domain.task.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TaskMapper extends BaseMapper<Task> {

    @Select("select task.*  from task join course on task.course_id = course.id where task.course_id = #{classId} order by task.id desc")
    List<Task> getTaskList(Integer classId);

}
